with  open("file.txt","r") as f:
    x=f.readlines()
    for i in x:
        print(i,end="")







# # 读取列表
# file="file.txt"
# with open(file, 'r') as f:
#     x=f.readlines()
#     print(x)

# # 遍历列表内的值
# file="file.txt"
# with open(file, 'r') as f:
#     for line in f.readlines(): 
#         # print(line.strip()) # 把末尾的'\n'删掉
#         print(line,end="")
#         # print(line)


